/** When your routing table is too long, you can split it into small modules **/

import Layout from '@/layout'

const identityRouter = {
  path: '/identity',
  component: Layout,
  redirect: 'noRedirect',
  alwaysShow: true, // will always show the root menu
  name: 'identity',
  meta: {
    title: 'identity',
    icon: 'peoples',
    permissions: ['auth.view_group', 'identity.view_user']
  },
  children: [
    {
      path: 'roles',
      component: () => import('@/views/identity/roles'),
      name: 'role-list',
      meta: {
        title: 'role',
        permissions: ['auth.view_group']
      }
    },
    {
      path: 'users',
      component: () => import('@/views/identity/users'),
      name: 'user-list',
      meta: {
        title: 'user',
        permissions: ['identity.view_user']
      }
    }
  ]
}
export default identityRouter
